package com.xsf.jieyou.business.feign.api;

import com.xsf.jieyou.business.feign.fallback.ProfileFeignFallback;
import com.xsf.jieyou.configuration.FeignRequestConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 个人信息管理，Feign接口。
 * <p>
 * Description:Feign API
 * </p>
 *
 * @author xsf
 * @version v1.0.0
 * @date 2019/11/15 0015
 **/
@FeignClient(value = "business-profile", path = "profile", configuration = FeignRequestConfiguration.class, fallback =
        ProfileFeignFallback.class)
public interface ProfileFeign {
    /**
     * 获取个人信息
     *
     * @return Json字符串
     */
    @GetMapping(value = "info")
    String info();
}
